package com.sunlands.qdcy.tongzhuo.feign;


import com.sunlands.qdcy.tongzhuo.config.OauthFeignConfig;
import com.sunlands.qdcy.tongzhuo.feign.vo.UserBlacklist;
import com.sunlands.qdcy.tongzhuo.vo.BusinessResult;
import com.sunlands.qdcy.tongzhuo.vo.UserFollowInfo;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p></p>
 * <PRE>
 * <BR>    修改记录
 * <BR>-----------------------------------------------
 * <BR>    修改日期         修改人          修改内容
 * </PRE>
 *
 * @author zl
 * @version 1.0
 * @date Created in 2019/4/18 11:07
 * @copyright: Copyright (c) founders
 */
@FeignClient(name = "tz-user-friend", configuration = OauthFeignConfig.class)
public interface UserFriendClient {

    @GetMapping(value = "/user/friendsAll")
    BusinessResult userFriendsList( @RequestParam("userId") Long userId);

    @ApiOperation(value = "我的关注列表不分页,app调用", notes = "我的关注列表不分页")
    @GetMapping("/user/followsAll")
    BusinessResult<List<UserFollowInfo>> followsAll(@RequestParam("userId") Long userId);


    @GetMapping("/user/myBlacklist")
    BusinessResult<List<UserBlacklist>> myBlacklist(@ApiParam(value = "用户id", required = true) @RequestParam("userId") Long userId);

    @GetMapping("/user/checkBlacklist")
    BusinessResult<Integer> checkBlacklist(@ApiParam(value = "用户id",required = true)@RequestParam(value = "userId") Long userId,
                                           @ApiParam(value = "道友id",required = true)@RequestParam(value = "friendsUserId") Long friendsUserId);

}
